home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / widgets / Fontview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-27  |  2.5 KB  |  83 lines

  1. /* Fontview.h: public header file for a font-viewing widget, implemented
  2.    as a subclass of Athena's Label widget.
  3.  
  4. Copyright (C) 1992 Free Software Foundation, Inc.
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef FONTVIEW_WIDGET_H
  21. #define FONTVIEW_WIDGET_H
  22.  
  23. #include "xt-common.h"
  24. #include <X11/Xaw/Label.h>
  25.  
  26.  
  27. /* Resources (in addition to those in Core, Simple, and Label):
  28.  
  29. Name        Class        RepType        Default Value
  30. ----        -----        -------        -------------
  31. chars        CharInfo    Pointer        NULL
  32.   A pointer to an array of 256 pointers to `char_type' structures
  33.   (see `char.h').  This gives the bitmap and TFM information for each
  34.   character, or, if the corresponding element is NULL, says the
  35.   character doesn't exist.
  36.  
  37. fontInfo        FontInfo    Pointer        NULL
  38.   A pointer to a `font_type' structure.
  39.  
  40. lineSpace    Fontdimen    Dimension    65
  41.   The normal interline space from baseline to baseline, in pixels.  The
  42.   NextLine action uses this.
  43.  
  44. resolution    Resolution    Dimension    300
  45.   The resolution of this font, in pixels per inch.
  46.  
  47. translations    Translations    TranslationTable xx
  48.   The event bindings associated with xx widget.
  49.  
  50. wordSpace    Fontdimen    Dimension    10
  51.   The normal interword space, in pixels.  The InsertWordSpace
  52.         action moves right by this much.
  53. */
  54.  
  55. #define XtCCharInfo    "CharInfo"
  56. #define XtCFontdimen    "Fontdimen"
  57.  
  58. #define XtNchars    "charInfo"
  59.  
  60. #define XtNfontInfo    "fontInfo"
  61. #define XtCFontInfo    "FontInfo"
  62.  
  63. #define XtNlineSpace    "lineSpace"
  64. #define FONTVIEW_DEFAULT_LINE_SPACE 65
  65.  
  66. #define XtNresolution    "resolution"
  67. #define XtCResolution    "Resolution"
  68. #define FONTVIEW_DEFAULT_RESOLUTION 300
  69.  
  70. #define XtNwordSpace    "wordSpace"
  71. #define FONTVIEW_DEFAULT_WORD_SPACE 10
  72.  
  73.  
  74.  
  75. /* The class variable, for arguments to XtCreateWidget et al.  */
  76. extern WidgetClass fontviewWidgetClass;
  77.  
  78. /* The class record and instance record types.  */
  79. typedef struct _FontviewClassRec *FontviewWidgetClass;
  80. typedef struct _FontviewRec *FontviewWidget;
  81.  
  82. #endif /* not FONTVIEW_WIDGET_H */
  83.